package com.songcha.module_mine.ui.adapter

import android.graphics.Color
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.songcha.module_mine.R
import com.songcha.module_mine.bean.GoldExchangeVipBean

class GoldExchangeAdapter(list:MutableList<GoldExchangeVipBean>):BaseQuickAdapter<GoldExchangeVipBean,BaseViewHolder>(
    R.layout.mine_item_gold_exchange,list) {

    init {
        addChildClickViewIds(R.id.mine_btn_exchange)
    }


    override fun convert(holder: BaseViewHolder, item: GoldExchangeVipBean) {
        holder.getView<TextView>(R.id.mine_tv_title).apply {
            text="VIP会员${item.norm}天"
        }

        holder.getView<TextView>(R.id.mine_tv_desc).apply {
            text=" 消耗-${item.goldNumber}金币"
        }


    }

}